import com.ikkong.biz.model.Classes;
import com.jfinal.kit.StrKit;
import org.jeecgframework.poi.excel.entity.result.ExcelVerifyHanlderResult;
import org.jeecgframework.poi.handler.inter.IExcelVerifyHandler;

/**
 * Created by linyu on 2016/11/14.
 */
public class ExcelClassesVerifyHandlerImpl implements IExcelVerifyHandler<Classes>{

    @Override
    public ExcelVerifyHanlderResult verifyHandler(Classes classes) {
        StringBuilder builder = new StringBuilder();
/*        if (StringUtils.isNotEmpty(obj.getEmail())) {
            builder.append("Email must null;");
        }*/
        if (StrKit.isBlank(classes.getClass_name())) {
            builder.append("classname must not null");
        }
        return new ExcelVerifyHanlderResult(false, builder.toString());
    }
}
